Repository navigation
Add step to build a "production" fedora build on pull requests - #15090
Conversation
|
Failed to load packit config file: For more info, please check out the documentation or contact the Packit team. You can also use our CLI command |
bea3ac0 to
f2d43ca
Compare
fd7dcc8 to
4ac1fb8
Compare
| Version: 0.1.82 | ||
| Release: 1%{?dist} |
There was a problem hiding this comment.
I think it will build the version 0.1.82 forever.
In the other spec file, we have this:
# Version placeholder. Copr build version is determined by utils/version.sh. See .packit.yaml config
Version: 0.0.1
Release: 0%{?dist}
Try to have this thing also in this spec file.
|
/packit build |
|
Just an FYI will have to switch up the names for the required builds due to this PR. |
| %define cmake_defines_common -DSSG_SEPARATE_SCAP_FILES_ENABLED=OFF -DSSG_BASH_SCRIPTS_ENABLED=OFF -DSSG_BUILD_SCAP_12_DS=OFF | ||
| %define cmake_defines_specific %{nil} | ||
| %if 0%{?rhel} && ! %{defined eln} | ||
| %define cmake_defines_specific -DSSG_PRODUCT_DEFAULT:BOOLEAN=FALSE -DSSG_PRODUCT_RHEL%{rhel}:BOOLEAN=TRUE -DSSG_SCIENTIFIC_LINUX_DERIVATIVES_ENABLED:BOOL=OFF -DSSG_CENTOS_DERIVATIVES_ENABLED:BOOL=OFF -DSSG_ANSIBLE_PLAYBOOKS_PER_RULE_ENABLED:BOOL=ON |
There was a problem hiding this comment.
This seems to be yielding -DSSG_PRODUCT_RHEL46:BOOL=ON
%{rhel} is being set to 46 here according to: https://artifacts.dev.testing-farm.io/9c3be016-7b69-4e04-a739-6e5026e36de3/work-cixgdpip_f/plans/ci/execute/data/guest/default-0/static-checks/rpmbuild-ctest-1/output.txt
We probably need to hardcode the RHEL version here, or build all the products instead
| %define cmake_defines_specific -DSSG_PRODUCT_DEFAULT:BOOLEAN=FALSE -DSSG_PRODUCT_RHEL%{rhel}:BOOLEAN=TRUE -DSSG_SCIENTIFIC_LINUX_DERIVATIVES_ENABLED:BOOL=OFF -DSSG_CENTOS_DERIVATIVES_ENABLED:BOOL=OFF -DSSG_ANSIBLE_PLAYBOOKS_PER_RULE_ENABLED:BOOL=ON | |
| %define cmake_defines_specific -DSSG_PRODUCT_DEFAULT:BOOLEAN=FALSE -DSSG_SCIENTIFIC_LINUX_DERIVATIVES_ENABLED:BOOL=OFF -DSSG_CENTOS_DERIVATIVES_ENABLED:BOOL=OFF -DSSG_ANSIBLE_PLAYBOOKS_PER_RULE_ENABLED:BOOL=ON |
option(SSG_PRODUCT_DEFAULT "If enabled, all default release products will be built; otherwise only explicitly enabled products will be" TRUE)
There was a problem hiding this comment.
No products seem to have been built
There was a problem hiding this comment.
@ggbecker I don't know if I don't miss anything but I think your concern is orthogonal.
This new spec file is for the new jobs that have "mock" in their name. In these jobs I can see that all products are built.
For example, in the job rpm-build:fedora-rawhide-x86_64:mock we can see many products built in the logs: https://download.copr.fedorainfracloud.org/results/packit/ComplianceAsCode-content-15090-mock/fedora-rawhide-x86_64/10949421-scap-security-guide/builder-live.log.gz
-- Products:
-- Amazon Linux 2023: ON
-- Alibaba Cloud Linux 2: ON
-- Alibaba Cloud Linux 3: ON
-- AlmaLinux OS 9: ON
-- Anolis OS 8: ON
-- Anolis OS 23: ON
-- Debian 11: ON
-- Debian 12: ON
-- Debian 13: ON
-- Example: OFF
-- EKS: ON
-- Fedora: ON
-- Firefox: ON
-- Hummingbird: ON
-- Kylin Server V10: ON
-- KylinSec Server 6: ON
-- OCP4: ON
-- RHCOS4: ON
-- Oracle Linux 7: ON
-- Oracle Linux 8: ON
-- Oracle Linux 9: ON
-- Oracle Linux 10: ON
-- OpenEmbedded: ON
-- openEuler 22.03 LTS: ON
-- openSUSE: ON
-- RHEL 8: ON
-- RHEL 9: ON
-- RHEL 10: ON
-- RHV 4: ON
-- SLES 12: ON
-- SLES 15: ON
-- SLES 16: ON
-- SLE Micro 5: ON
-- SLE Micro 6: ON
-- TencentOS Server 4: ON
-- Ubuntu 22.04: ON
-- Ubuntu 24.04: ON
-- Ubuntu 26.04: ON
There was a problem hiding this comment.
If we find changes are needed here we to consider coping them Fedora. This the spec file (sans changelog) is from Fedora.
There was a problem hiding this comment.
No products seem to have been built
I pulled the RPMs from the copr job, they seem to is data streams.
There was a problem hiding this comment.
It was one that built and run the static-checks/rpmbuild-ctest-1, I don't know if it is failing anymore.
I pointed out that {rhel} variable was being expanded with version of Fedora and was causing that specific test to not build any product, and on a recently introduced test, if there was no product being built, it threw an error. Previously, I believe there was no error when no product was being built, because ctest would not fail in any way.
I'm not sure if this is still valid after you reiterated here in this pull request.
There was a problem hiding this comment.
the mock job seems to be building a very old version of scap-security-guide: scap-security-guide-v0.1.61-1
https://dashboard.packit.dev/jobs/copr/3938414
I'm not sure if that is relevant.
There was a problem hiding this comment.
@ggbecker The issue with building RHEL 45 in static-checks job is an issue in contest: RHSecurityCompliance/contest#674 It's a pre-existing issue, not caused by this PR.
|
/packit build |
|
@jan-cerny What is needed to move this forward? |
|
/packit build |
|
To be honest I don't know all the details of how the fedora is being built here and I don't know if the current solution is good enough. I also see some expected checks from the CI are not being run I also replied inline, please check it. |
|
I also noticed that the 0.1.61 is being fetched by packit here: https://dashboard.packit.dev/jobs/srpm/689073 |
| targets: | ||
| - fedora-all-x86_64 | ||
| actions: | ||
| post-upstream-clone: |
There was a problem hiding this comment.
| post-upstream-clone: | |
| get-current-version: | |
| - bash utils/version.sh | |
| post-upstream-clone: |
Also add the get-current-version on this step as well
That is expected, as I had the change the names of the jobs. We will have adjust names as I mentioned in #15090 (comment). I can adjust as suggested above. |
4ac1fb8 to
41094cc
Compare
|
@Mab879 please rebase |
41094cc to
923eeda
Compare
|
Failed to load packit config file: For more info, please check out the documentation or contact the Packit team. You can also use our CLI command |
923eeda to
e79c021
Compare
To catch issues with packaging
e79c021 to
6e7d3c8
Compare
|
/packit build |
|
@Mab879 please try to wake up the packit by rebasing the PR on latest master branch |
The rpm-build that are "pending" will never show up on this PR. Right before you merge this PR you will need turn off these required builds as I had to rename them to get this to work so they always so as pending. |
|
@Mab879 How did you rename them and what are their new names? |
|
New name: Changed due to the adding of: It's needed so the we can have two copr jobs. |
Description:
Add step to build a "production" fedora build on pull requests
Rationale:
To catch issues with packaging in upstream.
Review Hints:
Check that added job ran successfully.